/**
 * Copyright (c) 2024,  科泰集团教研团队
 * 版权所有，请勿侵权
 */
package com.ktjiaoyu.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * 新闻实体类
 * @author 科泰集团教研团队
 * @createTime 2024-4-17 20:49:54
 * @lastModify 2024-4-17 20:49:54
 * @version 1.0.0
 */
public class News implements Serializable {

  public News() {
  }

  private Long id;  //主键，自增长
  private Long typeId;  //关联新闻类型表ID
  private String title;  //新闻标题
  private String content;  //新闻内容
  private String cover; // 新闻封面地址
  private Integer readCount;  //新闻点击的次数
  private String author;  //新闻作者或媒体名
  private Date pubTime;  //新闻的发布时间
  private Long adminId;  //关联管理员表ID

  private NewsType newsType; // 新闻分类


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }


  public Long getTypeId() {
    return typeId;
  }

  public void setTypeId(Long typeId) {
    this.typeId = typeId;
  }


  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }


  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }


  public Integer getReadCount() {
    return readCount;
  }

  public void setReadCount(Integer readCount) {
    this.readCount = readCount;
  }


  public String getAuthor() {
    return author;
  }

  public void setAuthor(String author) {
    this.author = author;
  }


  public Date getPubTime() {
    return pubTime;
  }

  public void setPubTime(Date pubTime) {
    this.pubTime = pubTime;
  }


  public Long getAdminId() {
    return adminId;
  }

  public void setAdminId(Long adminId) {
    this.adminId = adminId;
  }

  public String getCover() {
    return cover;
  }

  public void setCover(String cover) {
    this.cover = cover;
  }

  public NewsType getNewsType() {
    return newsType;
  }

  public void setNewsType(NewsType newsType) {
    this.newsType = newsType;
  }
}
